iT邦幫忙

第 12 屆 iThome 鐵人賽

DAY 22
0
Modern Web

把前後分離製作的網站組起來系列 第 22

漂亮網站製作-倒數第9天

  • 分享至 

  • xImage
  •  

繼續漂亮網站製作
改變原來在app.component.html的程式碼
https://ithelp.ithome.com.tw/upload/images/20210613/201190355gwWd1uWHk.png

複製貼上程式碼:

<div class="page-wrapper">

		<!-- MENU SIDEBAR-->
		<aside class="menu-sidebar d-none d-lg-block">
			<div class="logo">
				<a href="home.html">
					<img src="assets/images/logo.png" alt="luv2shop" class="img-responsive">
				</a>
			</div>
			<div class="menu-sidebar-content js-scrollbar1">
				<nav class="navbar-sidebar">
					<ul class="list-unstyled navbar-list">
						<li>
							<a href="#">Books</a>
						</li>
						<li>
							<a href="#">Coffee Mugs</a>
						</li>
						<li>
							<a href="#">Mouse Pads</a>
						</li>
						<li>
							<a href="#">Luggage Tags</a>
						</li>
					</ul>
				</nav>
			</div>
		</aside>
		<!-- END MENU SIDEBAR-->


然後自己再加上
https://ithelp.ithome.com.tw/upload/images/20210613/20119035DWEzf4Dj1m.png

目前長這樣
https://ithelp.ithome.com.tw/upload/images/20210613/20119035qavDAh7tHa.png

然後再加入程式碼:

<div class="page-container">
			<!-- HEADER DESKTOP-->
			<header class="header-desktop">
				<div class="section-content section-content-p30">
					<div class="container-fluid">
						<div class="header-wrap">
							<form class="form-header" onsubmit="return false;" method="GET">
								<input class="au-input au-input-xl" type="text" name="search"
									placeholder="Search for data ..." />
								<button class="au-btn-submit" type="submit">
									Search
								</button>
							</form>
							<div class="cart-area d-n">
								<a href="shopping-detail.html">
									<div class="total">19.22 <span> 2</span> </div> <i class="fa fa-shopping-cart"
										aria-hidden="true"></i>
								</a>
							</div>
						</div>
						<div class="account-wrap"></div>
					</div>
				</div>
			</header>
			<!-- END HEADER DESKTOP-->

https://ithelp.ithome.com.tw/upload/images/20210613/20119035ZFMSKwkEO2.png

然後自己再加上

目前長這樣:
https://ithelp.ithome.com.tw/upload/images/20210613/20119035uFe1eZnwJA.png

然後再程式碼貼上:

 <!-- MAIN CONTENT-->

   <app-product-list></app-product-list>

</div>
</div>

<!-- END PAGE CONTAINER-->


<footer>
  <ul>
    <li><a href="#">About Us</a></li>
    <li><a href="#">Contact Us</a></li>
    <li><a href="#">Help</a></li>
  </ul>
</footer>

目前長這樣:
https://ithelp.ithome.com.tw/upload/images/20210613/20119035DZM06yX8S6.png

目前完整的程式碼:

<div class="page-wrapper">

  <!-- MENU SIDEBAR-->
  <aside class="menu-sidebar d-none d-lg-block">
    <div class="logo">
      <a href="home.html">
        <img src="assets/images/logo.png" alt="luv2shop" class="img-responsive">
      </a>
    </div>
    <div class="menu-sidebar-content js-scrollbar1">
      <nav class="navbar-sidebar">
        <ul class="list-unstyled navbar-list">
          <li>
            <a href="#">Books</a>
          </li>
          <li>
            <a href="#">Coffee Mugs</a>
          </li>
          <li>
            <a href="#">Mouse Pads</a>
          </li>
          <li>
            <a href="#">Luggage Tags</a>
          </li>
        </ul>
      </nav>
    </div>
  </aside>
  <!-- END MENU SIDEBAR-->

  <div class="page-container">
    <!-- HEADER DESKTOP-->
    <header class="header-desktop">
      <div class="section-content section-content-p30">
        <div class="container-fluid">
          <div class="header-wrap">
            <form class="form-header" onsubmit="return false;" method="GET">
              <input class="au-input au-input-xl" type="text" name="search"
                placeholder="Search for data ..." />
              <button class="au-btn-submit" type="submit">
                Search
              </button>
            </form>
            <div class="cart-area d-n">
              <a href="shopping-detail.html">
                <div class="total">19.22 <span> 2</span> </div> <i class="fa fa-shopping-cart"
                  aria-hidden="true"></i>
              </a>
            </div>
          </div>
          <div class="account-wrap"></div>
        </div>
      </div>
    </header>
    <!-- END HEADER DESKTOP-->

    <!-- MAIN CONTENT-->

   <app-product-list></app-product-list>

</div>
</div>

<!-- END PAGE CONTAINER-->


<footer>
  <ul>
    <li><a href="#">About Us</a></li>
    <li><a href="#">Contact Us</a></li>
    <li><a href="#">Help</a></li>
  </ul>
</footer>


再來修改程式碼:

變成

https://ithelp.ithome.com.tw/upload/images/20210613/20119035znXhQsTsp0.png


居然來到倒數第9天了/images/emoticon/emoticon10.gif
時間過得也太快~
從10幾天開始就愛睏症發作~
現在還再猛追/images/emoticon/emoticon20.gif

我想我補到這裡時可能會想補信用卡?
但是事實上在付款時的信息應該不會有人想直接登入
都是透過金流的網頁/images/emoticon/emoticon28.gif

所以我先空著來想想

DEAR ALL 我們明天見/images/emoticon/emoticon05.gif


上一篇
繼續學習+正則表達式
下一篇
倒數第8天
系列文
把前後分離製作的網站組起來30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言